<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'main.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  
  <link rel="stylesheet" href="../../css/main.css" type="text/css"></link></head>
  <body>
  	<div class="main">
  		<!-- 导航栏 -->
		<div class="main_nav">
		<ul>
			<li><a href="${pageContext.request.contextPath }/user/gotoLogin">登录</a></li>
			<li><a href="${pageContext.request.contextPath }/user/gotoRegister">注册</a></li>
			<li><a href="${pageContext.request.contextPath }/article/gotoPublish">写文章</a></li>
		</ul>
		</div>
		<!-- 文章主体 -->
		<div class="post_list">
			<c:forEach items="${articleList }" varStatus="article">
			
			
			
			<div class="post_item">
			
				<div class="post_item_body">
					<h3><a href="##">${article.articleTitle }</a></h3>
				
				
					<div class="post_item_summary">
						<p>${article.articleContent}</p>
					</div>
				
					<div class="post_item_foot">
						<a href="##">autor</a>
						<span><a href="##">评论</a></span>
						<span><a href="##">阅读</a></span>
			
					</div>
			
				</div>
			
			</div>
			</c:forEach>
		</div>
	</div>
  </body>
</html>
